package cn.net.mugui.net.pc.sql.bean;

import java.util.Date;

import com.mugui.bean.JsonBean;
import com.mugui.sql.SQLDB;
import com.mugui.sql.SQLField;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@SQLDB(TABLE = "user_msg_log", KEY = "id")
public class UserMsgLog extends JsonBean {

	@SQLField(PRIMARY_KEY = true, AUTOINCREMENT = true, AUTOINCREMENT_value = "autoincrement")
	private Integer id;
	/**
	 * 消息发送人
	 */
	@SQLField
	private String address;
	/**
	 * 消息发送人名称
	 */
	@SQLField
	private String name;
	/**
	 * 消息主体
	 */
	@SQLField(DATA_TYPE = "text")
	private String msg;

	/**
	 * 消息日期
	 */
	@SQLField
	private Date date;

}
